<!--

/*
* Copyright (C) 2005-2013 University of Sydney
*
* Licensed under the GNU License, Version 3.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.gnu.org/licenses/gpl-3.0.txt
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/

/**
* brief description of file
*
* @author      Tom Murtagh
* @author      Kim Jackson
* @author      Ian Johnson   <ian.johnson@sydney.edu.au>
* @author      Stephen White   <stephen.white@sydney.edu.au>
* @author      Artem Osmakov   <artem.osmakov@sydney.edu.au>
* @copyright   (C) 2005-2013 University of Sydney
* @link        http://Sydney.edu.au/Heurist
* @version     3.1.0
* @license     http://www.gnu.org/licenses/gpl-3.0.txt GNU License 3.0
* @package     Heurist academic knowledge management system
* @subpackage  !!!subpackagename for file such as Administration, Search, Edit, Application, Library
*/

-->
<!--

/**
* manageReports.html
* user reports listing
*
* @version 2012.0419
* @autor: Artem Osmakov
*
* @copyright (C) 2005-2010 University of Sydney Digital Innovation Unit.
* @link: http://HeuristScholar.org
* @license http://www.gnu.org/licenses/gpl-3.0.txt
* @package Heurist academic knowledge management system
* @todo
**/

-->
<html>
	<head>


		<meta http-equiv="content-type" content="text/html; charset=utf-8">
		<title>Manage Reports</title>

		<link rel=stylesheet href="../../common/css/global.css">

		<!-- YUI -->
		<link rel="stylesheet" type="text/css" href="../../external/yui/2.8.2r1/build/fonts/fonts-min.css" />
		<link rel="stylesheet" type="text/css" href="../../external/yui/2.8.2r1/build/tabview/assets/skins/sam/tabview.css" />
		<script type="text/javascript" src="../../external/yui/2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js"></script>
		<script type="text/javascript" src="../../external/yui/2.8.2r1/build/element/element-min.js"></script>
		<!--script type="text/javascript" src="../../external/yui/2.8.2r1/build/history/history-min.js"></script!-->
		<script type="text/javascript" src="../../external/yui/2.8.2r1/build/json/json-min.js"></script>

		<!-- DATATABLE DEFS -->
		<link type="text/css" rel="stylesheet" href="../../external/yui/2.8.2r1/build/datatable/assets/skins/sam/datatable.css">
		<!-- datatable Dependencies -->
		<script type="text/javascript" src="../../external/yui/2.8.2r1/build/datasource/datasource-min.js"></script>
		<!-- OPTIONAL: Drag Drop (enables resizeable or reorderable columns) -->
		<script type="text/javascript" src="../../external/yui/2.8.2r1/build/dragdrop/dragdrop-min.js"></script>
		<!-- Source files -->
		<script type="text/javascript" src="../../external/yui/2.8.2r1/build/datatable/datatable-min.js"></script>
		<!-- END DATATABLE DEFS-->

		<!-- PAGINATOR -->
		<link rel="stylesheet" type="text/css" href="../../external/yui/2.8.2r1/build/paginator/assets/skins/sam/paginator.css">
		<script type="text/javascript" src="../../external/yui/2.8.2r1/build/paginator/paginator-min.js"></script>
		<!-- END PAGINATOR -->

		<script type="text/javascript" src="../../external/jquery/jquery.js"></script>
        <link rel="stylesheet" type="text/css" href="../../common/css/global.css">
    	<link rel="stylesheet" type="text/css" href="../../common/css/admin.css">
		<style>
			#page-inner {top:0 !important}
			div.yui-dt-liner span.count {padding:0 3px; line-height:16px}

			.yui-skin-sam .yui-dt-liner{
  				white-space:nowrap;
			}
			/*
			.yui-dt-label .yui-dt-liner{
				min-width:16px;
			}*/
			</style>

	</head>


	<body width="650" height="450" class="popup yui-skin-sam" style="overflow:auto;">
    <div>
    	<!--<div class="banner"><h2>Manage Groups</h2></div>-->

		<script type="text/javascript" src="../../common/js/utilsLoad.js"></script>
		<script type="text/javascript" src="../../common/js/utilsUI.js"></script>
		<script src="../../common/php/displayPreferences.php"></script>

		<!-- access to functions about current user -->
		<script type="text/javascript" src="manageReports.js"></script>


	<div id="page-inner">

			<div><ul>
<li>Use this function to set up calls to write a report to file (writes HTML and JS files).</li>
<li>Click on <img src="../../common/images/lightning.png" width="16" height="16" border="0"> to run the report and update the files. Copy the URL from this link and create a hyperlink in your web page to allow updating the files from the web site.</li>
<li>The URLs of the generated files are shown in the HTML and JS columns - copy these to show the report as a web page or in an iframe (HTML) or embed the report in your web page (JS).</li>
			</ul>
			</div>

			<div id="toolbar" style="height:22px;">
				<div>
					<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Filter by name:</label>
					<input type="text" id="inputFilterByName" name="inputFilterByName" style="width:140px;" value=""/>
				</div>
			</div>

			<!-- edit contols -->
			<div id="tb_top" style="height:30">
				<div style="display:inline-block; max-width:150;"><div id="dt_pagination_top"></div></div>
				<div style="float:right; text-align:right;padding-top:5px;">
					<input type="button" tabindex="11" id="btnAdd1" value="Add New Report" onClick="reportManager.editReport(-1);" />
				</div>
			</div>

			<div id="tabContainer" style="width:100%">

				<script  type="text/javascript">

				//  starts initialization on load completion of this window
				function createManagerObj(){
					reportManager = new  ReportManager(false, false, true); //nonfilter, no selection, in window
				}
				YAHOO.util.Event.addListener(window, "load", createManagerObj);

				</script>
			</div>

			<!-- edit contols -->
			<div id="tb_top" style="height:30">
				<div style="display:inline-block; max-width:150;"><div id="dt_pagination_bottom"></div></div>
				<div style="float:right; text-align:right;padding-top:5px;">
					<input type="button" tabindex="11" id="btnAdd2" value="Add New Report" onClick="reportManager.editReport(-1);" />
				</div>
			</div>
	</div>
	</div>

	</body>
</html>
